/*
 * MIT License
 *
 * Copyright (c) 2018 Aberic Yang
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: block/BlockInfo.proto

package cn.aberic.bother.entity.proto.block;

public final class BlockInfoProto {
  private BlockInfoProto() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface BlockInfoOrBuilder extends
      // @@protoc_insertion_point(interface_extends:BlockInfo)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * 区块高度
     * </pre>
     *
     * <code>int32 height = 1;</code>
     */
    int getHeight();

    /**
     * <pre>
     * 当前区块hash
     * </pre>
     *
     * <code>string blockHash = 2;</code>
     */
    String getBlockHash();
    /**
     * <pre>
     * 当前区块hash
     * </pre>
     *
     * <code>string blockHash = 2;</code>
     */
    com.google.protobuf.ByteString
        getBlockHashBytes();

    /**
     * <pre>
     * 区块中交易hash集合
     * </pre>
     *
     * <code>repeated string transactionHashList = 3;</code>
     */
    java.util.List<String>
        getTransactionHashListList();
    /**
     * <pre>
     * 区块中交易hash集合
     * </pre>
     *
     * <code>repeated string transactionHashList = 3;</code>
     */
    int getTransactionHashListCount();
    /**
     * <pre>
     * 区块中交易hash集合
     * </pre>
     *
     * <code>repeated string transactionHashList = 3;</code>
     */
    String getTransactionHashList(int index);
    /**
     * <pre>
     * 区块中交易hash集合
     * </pre>
     *
     * <code>repeated string transactionHashList = 3;</code>
     */
    com.google.protobuf.ByteString
        getTransactionHashListBytes(int index);

    /**
     * <pre>
     * 区块所在区块文件编号
     * </pre>
     *
     * <code>int32 num = 4;</code>
     */
    int getNum();

    /**
     * <pre>
     * 区块所在区块文件中的行号
     * </pre>
     *
     * <code>string line = 5;</code>
     */
    String getLine();
    /**
     * <pre>
     * 区块所在区块文件中的行号
     * </pre>
     *
     * <code>string line = 5;</code>
     */
    com.google.protobuf.ByteString
        getLineBytes();
  }
  /**
   * Protobuf type {@code BlockInfo}
   */
  public  static final class BlockInfo extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:BlockInfo)
      BlockInfoOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BlockInfo.newBuilder() to construct.
    private BlockInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private BlockInfo() {
      height_ = 0;
      blockHash_ = "";
      transactionHashList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      num_ = 0;
      line_ = "";
    }

    @Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private BlockInfo(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {

              height_ = input.readInt32();
              break;
            }
            case 18: {
              String s = input.readStringRequireUtf8();

              blockHash_ = s;
              break;
            }
            case 26: {
              String s = input.readStringRequireUtf8();
              if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
                transactionHashList_ = new com.google.protobuf.LazyStringArrayList();
                mutable_bitField0_ |= 0x00000004;
              }
              transactionHashList_.add(s);
              break;
            }
            case 32: {

              num_ = input.readInt32();
              break;
            }
            case 42: {
              String s = input.readStringRequireUtf8();

              line_ = s;
              break;
            }
            default: {
              if (!parseUnknownFieldProto3(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
          transactionHashList_ = transactionHashList_.getUnmodifiableView();
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return BlockInfoProto.internal_static_BlockInfo_descriptor;
    }

    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return BlockInfoProto.internal_static_BlockInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              BlockInfoProto.BlockInfo.class, BlockInfoProto.BlockInfo.Builder.class);
    }

    private int bitField0_;
    public static final int HEIGHT_FIELD_NUMBER = 1;
    private int height_;
    /**
     * <pre>
     * 区块高度
     * </pre>
     *
     * <code>int32 height = 1;</code>
     */
    public int getHeight() {
      return height_;
    }

    public static final int BLOCKHASH_FIELD_NUMBER = 2;
    private volatile Object blockHash_;
    /**
     * <pre>
     * 当前区块hash
     * </pre>
     *
     * <code>string blockHash = 2;</code>
     */
    public String getBlockHash() {
      Object ref = blockHash_;
      if (ref instanceof String) {
        return (String) ref;
      } else {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        blockHash_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * 当前区块hash
     * </pre>
     *
     * <code>string blockHash = 2;</code>
     */
    public com.google.protobuf.ByteString
        getBlockHashBytes() {
      Object ref = blockHash_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        blockHash_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int TRANSACTIONHASHLIST_FIELD_NUMBER = 3;
    private com.google.protobuf.LazyStringList transactionHashList_;
    /**
     * <pre>
     * 区块中交易hash集合
     * </pre>
     *
     * <code>repeated string transactionHashList = 3;</code>
     */
    public com.google.protobuf.ProtocolStringList
        getTransactionHashListList() {
      return transactionHashList_;
    }
    /**
     * <pre>
     * 区块中交易hash集合
     * </pre>
     *
     * <code>repeated string transactionHashList = 3;</code>
     */
    public int getTransactionHashListCount() {
      return transactionHashList_.size();
    }
    /**
     * <pre>
     * 区块中交易hash集合
     * </pre>
     *
     * <code>repeated string transactionHashList = 3;</code>
     */
    public String getTransactionHashList(int index) {
      return transactionHashList_.get(index);
    }
    /**
     * <pre>
     * 区块中交易hash集合
     * </pre>
     *
     * <code>repeated string transactionHashList = 3;</code>
     */
    public com.google.protobuf.ByteString
        getTransactionHashListBytes(int index) {
      return transactionHashList_.getByteString(index);
    }

    public static final int NUM_FIELD_NUMBER = 4;
    private int num_;
    /**
     * <pre>
     * 区块所在区块文件编号
     * </pre>
     *
     * <code>int32 num = 4;</code>
     */
    public int getNum() {
      return num_;
    }

    public static final int LINE_FIELD_NUMBER = 5;
    private volatile Object line_;
    /**
     * <pre>
     * 区块所在区块文件中的行号
     * </pre>
     *
     * <code>string line = 5;</code>
     */
    public String getLine() {
      Object ref = line_;
      if (ref instanceof String) {
        return (String) ref;
      } else {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        line_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * 区块所在区块文件中的行号
     * </pre>
     *
     * <code>string line = 5;</code>
     */
    public com.google.protobuf.ByteString
        getLineBytes() {
      Object ref = line_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        line_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private byte memoizedIsInitialized = -1;
    @Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (height_ != 0) {
        output.writeInt32(1, height_);
      }
      if (!getBlockHashBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, blockHash_);
      }
      for (int i = 0; i < transactionHashList_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, transactionHashList_.getRaw(i));
      }
      if (num_ != 0) {
        output.writeInt32(4, num_);
      }
      if (!getLineBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, line_);
      }
      unknownFields.writeTo(output);
    }

    @Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (height_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, height_);
      }
      if (!getBlockHashBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, blockHash_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < transactionHashList_.size(); i++) {
          dataSize += computeStringSizeNoTag(transactionHashList_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getTransactionHashListList().size();
      }
      if (num_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(4, num_);
      }
      if (!getLineBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, line_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @Override
    public boolean equals(final Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof BlockInfoProto.BlockInfo)) {
        return super.equals(obj);
      }
      BlockInfoProto.BlockInfo other = (BlockInfoProto.BlockInfo) obj;

      boolean result = true;
      result = result && (getHeight()
          == other.getHeight());
      result = result && getBlockHash()
          .equals(other.getBlockHash());
      result = result && getTransactionHashListList()
          .equals(other.getTransactionHashListList());
      result = result && (getNum()
          == other.getNum());
      result = result && getLine()
          .equals(other.getLine());
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
      hash = (53 * hash) + getHeight();
      hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER;
      hash = (53 * hash) + getBlockHash().hashCode();
      if (getTransactionHashListCount() > 0) {
        hash = (37 * hash) + TRANSACTIONHASHLIST_FIELD_NUMBER;
        hash = (53 * hash) + getTransactionHashListList().hashCode();
      }
      hash = (37 * hash) + NUM_FIELD_NUMBER;
      hash = (53 * hash) + getNum();
      hash = (37 * hash) + LINE_FIELD_NUMBER;
      hash = (53 * hash) + getLine().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static BlockInfoProto.BlockInfo parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static BlockInfoProto.BlockInfo parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static BlockInfoProto.BlockInfo parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static BlockInfoProto.BlockInfo parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static BlockInfoProto.BlockInfo parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static BlockInfoProto.BlockInfo parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static BlockInfoProto.BlockInfo parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static BlockInfoProto.BlockInfo parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static BlockInfoProto.BlockInfo parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static BlockInfoProto.BlockInfo parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static BlockInfoProto.BlockInfo parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static BlockInfoProto.BlockInfo parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(BlockInfoProto.BlockInfo prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @Override
    protected Builder newBuilderForType(
        BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code BlockInfo}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:BlockInfo)
        BlockInfoProto.BlockInfoOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return BlockInfoProto.internal_static_BlockInfo_descriptor;
      }

      @Override
      protected FieldAccessorTable
          internalGetFieldAccessorTable() {
        return BlockInfoProto.internal_static_BlockInfo_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                BlockInfoProto.BlockInfo.class, BlockInfoProto.BlockInfo.Builder.class);
      }

      // Construct using cn.aberic.bother.entity.proto.block.BlockInfoProto.BlockInfo.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @Override
      public Builder clear() {
        super.clear();
        height_ = 0;

        blockHash_ = "";

        transactionHashList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000004);
        num_ = 0;

        line_ = "";

        return this;
      }

      @Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return BlockInfoProto.internal_static_BlockInfo_descriptor;
      }

      @Override
      public BlockInfoProto.BlockInfo getDefaultInstanceForType() {
        return BlockInfoProto.BlockInfo.getDefaultInstance();
      }

      @Override
      public BlockInfoProto.BlockInfo build() {
        BlockInfoProto.BlockInfo result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @Override
      public BlockInfoProto.BlockInfo buildPartial() {
        BlockInfoProto.BlockInfo result = new BlockInfoProto.BlockInfo(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        result.height_ = height_;
        result.blockHash_ = blockHash_;
        if (((bitField0_ & 0x00000004) == 0x00000004)) {
          transactionHashList_ = transactionHashList_.getUnmodifiableView();
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.transactionHashList_ = transactionHashList_;
        result.num_ = num_;
        result.line_ = line_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      @Override
      public Builder clone() {
        return (Builder) super.clone();
      }
      @Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return (Builder) super.setField(field, value);
      }
      @Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      @Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      @Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      @Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      @Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof BlockInfoProto.BlockInfo) {
          return mergeFrom((BlockInfoProto.BlockInfo)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(BlockInfoProto.BlockInfo other) {
        if (other == BlockInfoProto.BlockInfo.getDefaultInstance()) return this;
        if (other.getHeight() != 0) {
          setHeight(other.getHeight());
        }
        if (!other.getBlockHash().isEmpty()) {
          blockHash_ = other.blockHash_;
          onChanged();
        }
        if (!other.transactionHashList_.isEmpty()) {
          if (transactionHashList_.isEmpty()) {
            transactionHashList_ = other.transactionHashList_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureTransactionHashListIsMutable();
            transactionHashList_.addAll(other.transactionHashList_);
          }
          onChanged();
        }
        if (other.getNum() != 0) {
          setNum(other.getNum());
        }
        if (!other.getLine().isEmpty()) {
          line_ = other.line_;
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @Override
      public final boolean isInitialized() {
        return true;
      }

      @Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        BlockInfoProto.BlockInfo parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (BlockInfoProto.BlockInfo) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private int height_ ;
      /**
       * <pre>
       * 区块高度
       * </pre>
       *
       * <code>int32 height = 1;</code>
       */
      public int getHeight() {
        return height_;
      }
      /**
       * <pre>
       * 区块高度
       * </pre>
       *
       * <code>int32 height = 1;</code>
       */
      public Builder setHeight(int value) {

        height_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 区块高度
       * </pre>
       *
       * <code>int32 height = 1;</code>
       */
      public Builder clearHeight() {

        height_ = 0;
        onChanged();
        return this;
      }

      private Object blockHash_ = "";
      /**
       * <pre>
       * 当前区块hash
       * </pre>
       *
       * <code>string blockHash = 2;</code>
       */
      public String getBlockHash() {
        Object ref = blockHash_;
        if (!(ref instanceof String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          String s = bs.toStringUtf8();
          blockHash_ = s;
          return s;
        } else {
          return (String) ref;
        }
      }
      /**
       * <pre>
       * 当前区块hash
       * </pre>
       *
       * <code>string blockHash = 2;</code>
       */
      public com.google.protobuf.ByteString
          getBlockHashBytes() {
        Object ref = blockHash_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8(
                  (String) ref);
          blockHash_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * 当前区块hash
       * </pre>
       *
       * <code>string blockHash = 2;</code>
       */
      public Builder setBlockHash(
          String value) {
        if (value == null) {
    throw new NullPointerException();
  }

        blockHash_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 当前区块hash
       * </pre>
       *
       * <code>string blockHash = 2;</code>
       */
      public Builder clearBlockHash() {

        blockHash_ = getDefaultInstance().getBlockHash();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 当前区块hash
       * </pre>
       *
       * <code>string blockHash = 2;</code>
       */
      public Builder setBlockHashBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);

        blockHash_ = value;
        onChanged();
        return this;
      }

      private com.google.protobuf.LazyStringList transactionHashList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      private void ensureTransactionHashListIsMutable() {
        if (!((bitField0_ & 0x00000004) == 0x00000004)) {
          transactionHashList_ = new com.google.protobuf.LazyStringArrayList(transactionHashList_);
          bitField0_ |= 0x00000004;
         }
      }
      /**
       * <pre>
       * 区块中交易hash集合
       * </pre>
       *
       * <code>repeated string transactionHashList = 3;</code>
       */
      public com.google.protobuf.ProtocolStringList
          getTransactionHashListList() {
        return transactionHashList_.getUnmodifiableView();
      }
      /**
       * <pre>
       * 区块中交易hash集合
       * </pre>
       *
       * <code>repeated string transactionHashList = 3;</code>
       */
      public int getTransactionHashListCount() {
        return transactionHashList_.size();
      }
      /**
       * <pre>
       * 区块中交易hash集合
       * </pre>
       *
       * <code>repeated string transactionHashList = 3;</code>
       */
      public String getTransactionHashList(int index) {
        return transactionHashList_.get(index);
      }
      /**
       * <pre>
       * 区块中交易hash集合
       * </pre>
       *
       * <code>repeated string transactionHashList = 3;</code>
       */
      public com.google.protobuf.ByteString
          getTransactionHashListBytes(int index) {
        return transactionHashList_.getByteString(index);
      }
      /**
       * <pre>
       * 区块中交易hash集合
       * </pre>
       *
       * <code>repeated string transactionHashList = 3;</code>
       */
      public Builder setTransactionHashList(
          int index, String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureTransactionHashListIsMutable();
        transactionHashList_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 区块中交易hash集合
       * </pre>
       *
       * <code>repeated string transactionHashList = 3;</code>
       */
      public Builder addTransactionHashList(
          String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureTransactionHashListIsMutable();
        transactionHashList_.add(value);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 区块中交易hash集合
       * </pre>
       *
       * <code>repeated string transactionHashList = 3;</code>
       */
      public Builder addAllTransactionHashList(
          Iterable<String> values) {
        ensureTransactionHashListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, transactionHashList_);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 区块中交易hash集合
       * </pre>
       *
       * <code>repeated string transactionHashList = 3;</code>
       */
      public Builder clearTransactionHashList() {
        transactionHashList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 区块中交易hash集合
       * </pre>
       *
       * <code>repeated string transactionHashList = 3;</code>
       */
      public Builder addTransactionHashListBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        ensureTransactionHashListIsMutable();
        transactionHashList_.add(value);
        onChanged();
        return this;
      }

      private int num_ ;
      /**
       * <pre>
       * 区块所在区块文件编号
       * </pre>
       *
       * <code>int32 num = 4;</code>
       */
      public int getNum() {
        return num_;
      }
      /**
       * <pre>
       * 区块所在区块文件编号
       * </pre>
       *
       * <code>int32 num = 4;</code>
       */
      public Builder setNum(int value) {

        num_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 区块所在区块文件编号
       * </pre>
       *
       * <code>int32 num = 4;</code>
       */
      public Builder clearNum() {

        num_ = 0;
        onChanged();
        return this;
      }

      private Object line_ = "";
      /**
       * <pre>
       * 区块所在区块文件中的行号
       * </pre>
       *
       * <code>string line = 5;</code>
       */
      public String getLine() {
        Object ref = line_;
        if (!(ref instanceof String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          String s = bs.toStringUtf8();
          line_ = s;
          return s;
        } else {
          return (String) ref;
        }
      }
      /**
       * <pre>
       * 区块所在区块文件中的行号
       * </pre>
       *
       * <code>string line = 5;</code>
       */
      public com.google.protobuf.ByteString
          getLineBytes() {
        Object ref = line_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8(
                  (String) ref);
          line_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * 区块所在区块文件中的行号
       * </pre>
       *
       * <code>string line = 5;</code>
       */
      public Builder setLine(
          String value) {
        if (value == null) {
    throw new NullPointerException();
  }

        line_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 区块所在区块文件中的行号
       * </pre>
       *
       * <code>string line = 5;</code>
       */
      public Builder clearLine() {

        line_ = getDefaultInstance().getLine();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 区块所在区块文件中的行号
       * </pre>
       *
       * <code>string line = 5;</code>
       */
      public Builder setLineBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);

        line_ = value;
        onChanged();
        return this;
      }
      @Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

      @Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:BlockInfo)
    }

    // @@protoc_insertion_point(class_scope:BlockInfo)
    private static final BlockInfoProto.BlockInfo DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new BlockInfoProto.BlockInfo();
    }

    public static BlockInfoProto.BlockInfo getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<BlockInfo>
        PARSER = new com.google.protobuf.AbstractParser<BlockInfo>() {
      @Override
      public BlockInfo parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new BlockInfo(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<BlockInfo> parser() {
      return PARSER;
    }

    @Override
    public com.google.protobuf.Parser<BlockInfo> getParserForType() {
      return PARSER;
    }

    @Override
    public BlockInfoProto.BlockInfo getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_BlockInfo_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_BlockInfo_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    String[] descriptorData = {
      "\n\025block/BlockInfo.proto\"f\n\tBlockInfo\022\016\n\006" +
      "height\030\001 \001(\005\022\021\n\tblockHash\030\002 \001(\t\022\033\n\023trans" +
      "actionHashList\030\003 \003(\t\022\013\n\003num\030\004 \001(\005\022\014\n\004lin" +
      "e\030\005 \001(\tB5\n#cn.aberic.bother.entity.proto" +
      ".blockB\016BlockInfoProtob\006proto3"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
    internal_static_BlockInfo_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_BlockInfo_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_BlockInfo_descriptor,
        new String[] { "Height", "BlockHash", "TransactionHashList", "Num", "Line", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
